<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title></title>

    <script type="text/javascript">
        var str = "Some text   Three  lines and\nmore\ntext";
        var ary = str.split(/ / );
        alert(str);            
        for(var i = 0, L = ary.length; i < L; i++){
            alert("ary[" + i + "]: " + ary[i]);
        }
    </script>
</head>
<body>

</body>
</html>